﻿using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using UtilsORM;
using UtilsORM.MySqlData;

////using System.Web.Script.Serialization;

namespace ServiceWeb.DBGateway
{
    public class DBIotDeviceModelType
    {
        EFYihongIotContext ef = new EFYihongIotContext();
        public List<iot_device_model_type> getModelTypeList()
        {
            return ef.iot_device_model_type.Where(c => c.t_status == 0).ToList();
        }

        public iot_device_model_type getModelType(string tguid)
        {
            return ef.iot_device_model_type.Where(c => c.t_status == 0 && c.t_guid == tguid).FirstOrDefault();
        }

    }
}
